package com.songlanyun.modules.marketing.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.goods.model.vo.ActivitySkuComItemVo;
import com.songlanyun.modules.goods.model.vo.SkuComItemVo;
import com.songlanyun.modules.marketing.groupbuy.entity.GroupBuyGoodsSku;
import com.songlanyun.modules.marketing.seckill.entity.SeckillGoodsSku;

import java.util.List;
import java.util.Map;

/**
 * 秒杀商品的规格表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-23 17:30:11
 */
public interface SeckillGoodsSkuService extends IService<SeckillGoodsSku> {

    PageUtils queryPage(Map<String, Object> params);

    List<SeckillGoodsSku> getBySeckillGoodsId(Long seckillGoodsId);

    void deleteBySeckillGoodsId(Long seckillGoodsId);

    SeckillGoodsSku getBySeckillGoodsAndSkuHashCode(Long seckillGoodsId, String skuHashCode);

    List<ActivitySkuComItemVo> loadSkuItemList(Long id);

    List<SeckillGoodsSku> listByGoodIds(Long seckillGoodsId);
}

